package com.qinglei.recoup.system.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel(description = "分页参数")
public class PageParam implements Serializable {

    @ApiModelProperty("当前页码，从1开始，默认是1")
    private Long pageNum = 1L;

    @ApiModelProperty("每页条数，默认20")
    private Long pageSize = 20L;

    @ApiModelProperty("排序字段")
    private String sortField;

    @ApiModelProperty("顺序规则 正序-ascend，倒序-descend")
    private String sortOrder;

}
